#ifndef FORMATSTRING_H
#define	FORMATSTRING_H

#include <sstream>

class FormatString {
public:
    template<class T>
    FormatString& operator << (const T& arg) {
        stream << arg;
        return *this;
    }
    
    inline operator std::string() const {
        return stream.str();
    }
protected:
    std::stringstream stream;
};

#endif	/* FORMATSTRING_H */

